package com.csun.dsms.service.impl;

import com.csun.dsms.comment.core.support.BaseService;
import com.csun.dsms.mapper.HgAttachmentDataMapper;
import com.csun.dsms.mapper.HgFactoryDataMapper;
import com.csun.dsms.model.huang.HgAttachmentData;
import com.csun.dsms.model.huang.HgFactoryData;
import com.csun.dsms.model.huang.HgQueryDto;
import com.csun.dsms.service.HgAttachmentDataService;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 附件文件
 */
@Service
public class HgAttachmentDataServiceImpl extends BaseService<HgAttachmentData>
        implements HgAttachmentDataService {

    @Resource
    private HgAttachmentDataMapper hgAttachmentDataMapper;

    @Override
    public List<HgAttachmentData> queryDataList(HgQueryDto hgQueryDto) {
        PageHelper.startPage(hgQueryDto.getPageNum(),hgQueryDto.getPageSize());
        return hgAttachmentDataMapper.queryListWithPage(hgQueryDto);
    }
}
